<template>
<div class="box-2">
    <h3>孙组件</h3>
    <p>b：{{ b }}</p>
    <p>c：{{ c }}</p>
    <el-button type="success" @click="updateB(1)">调用方法</el-button>
</div>
</template>

<script lang="ts" setup name="Grandson">


defineProps(['b','c','updateB'])
</script>

<style scoped>
.box-2{
    background-color: rgb(163, 55, 154);
    padding: 20px;
    border-radius: 10px;
}
</style>